﻿using System;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace Acme.BookStore2
{
    /// <summary>
    /// 车辆驾驶记录
    /// </summary>
    public class VehicleDriveRecord : FullAuditedAggregateRoot<Guid>, IMultiTenant
    {
        /// <summary>
        /// 驾驶时间
        /// </summary>
        public virtual DateTime DriveTime { get; set; }
        /// <summary>
        /// 驾驶人
        /// </summary>
        public virtual Guid Driver { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public virtual string Remark { get; set; }
        /// <summary>
        /// 车辆Id
        /// </summary>
        public virtual Guid VehicleId { get; }
        public Guid? TenantId { get; }
        protected VehicleDriveRecord()
        {
            
        }

        public VehicleDriveRecord(Guid id, Guid vehicleId, Guid? tenantId) : base(id)
        {
            VehicleId = vehicleId;
            TenantId = tenantId;
        }
    }
}